@import "../../scss/export";

.content-page-component {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;

  canvas {
    width: 100%;
    height: 100%;
  }

  .header-part {
    width: 100%;
    padding: 0 20px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: rgba(#000, 0.5);
    transition: 0.4s all ease;
    line-height: 40px;
    text-align: center;
    color: white;

    h3 {
      margin-bottom: 0;
      font-size: 20px;
      color: white;
    }

    .return-btns {
      position: absolute;
      top: 0;
      right: 20px;
      z-index: 2;
    }
  }
  .footer-part {
    width: 100%;
    padding: 20px 0;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    transition: 0.4s all ease;
    background-color: rgba(#000, 0.5);
    text-align: center;

    .ant-input,
    .ant-btn {
      margin-right: 10px;
    }

    .ant-input {
      width: 80px;
    }
  }
  .anticon {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    transition: 0.4s all ease;
    cursor: pointer;
    font-size: 60px;
    color: white;

    &-left-circle {
      left: 10px
    }

    &-right-circle {
      right: 10px
    }
  }

  .loading-state {
    @include absMiddle();
  }

  &.mouse-leave {
    .header-part {
      top: -60px;
    }
    .footer-part {
      bottom: -80px;
    }
    .anticon {
      &-left-circle {
        left: -60px
      }

      &-right-circle {
        right: -60px
      }
    }
  }

  &.react-page-component {
    padding: 0;
  }
}
